import { _decorator, Component, Node } from 'cc';
import { ModuleMgr } from './ModuleMgr';
const { ccclass, property } = _decorator;

@ccclass('ModuleBase')
export class ModuleBase extends Component {
    onInit(...rest:any[]){

    }
    onLateInit(...rest:any[]){

    }
    onUpdate(dt:number,...rest:any[]){

    }
    onLateUpdate(dt:number,...rest:any[]){
        
    }
    handleMsg(...rest:any[]){
        console.log("调用默认函数");
    }
    SendMsg(msg:string,modelName?:string,...rest:any[]){
        ModuleMgr.instance.SendMsg.apply(ModuleMgr.instance,arguments);    
    }
}


